package com.smarth.zhizulian.bean;

/**
 * Created by 18865 on 2017/12/25.
 */

public class BaseEntity<T> {
    private String code;
    private T data;
    private String message;
    private String timestamp;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public boolean isSuccess() {
        if ("200".equals(code)) {
            return true;
        }
        return false;
    }
}
